package com.bsoft.gol.hcs.clinical.entity;

import javax.persistence.*;

/**
 *
 * @Author impel
 * @Date 2021/5/7 10:57
 * @Description:
 * @Version 1.0
 */
@Entity
@Table(name = "ods_lab_set_detail")
public class OdsLabSetDetail {
    private int labSetDetailId;
    private int medicalTechnologySetId;
    private String examExecuteDept;
    private String examExecuteDeptName;
    private String composeType;
    private String itemTypeCode;
    private String itemTypeName;
    private String itemCode;
    private String itemName;
    private String childItemCode;
    private String childItemName;
    private String sampleCode;
    private String sampleName;
    private String emergency;
    private String pinyinCode;
    private int sort;

    @Id
    @Column(name = "lab_set_detail_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public int getLabSetDetailId() {
        return labSetDetailId;
    }

    public void setLabSetDetailId(int labSetDetailId) {
        this.labSetDetailId = labSetDetailId;
    }

    @Basic
    @Column(name = "medical_technology_set_id")
    public int getMedicalTechnologySetId() {
        return medicalTechnologySetId;
    }

    public void setMedicalTechnologySetId(int medicalTechnologySetId) {
        this.medicalTechnologySetId = medicalTechnologySetId;
    }

    @Basic
    @Column(name = "exam_execute_dept")
    public String getExamExecuteDept() {
        return examExecuteDept;
    }

    public void setExamExecuteDept(String examExecuteDept) {
        this.examExecuteDept = examExecuteDept;
    }

    @Basic
    @Column(name = "exam_execute_dept_name")
    public String getExamExecuteDeptName() {
        return examExecuteDeptName;
    }

    public void setExamExecuteDeptName(String examExecuteDeptName) {
        this.examExecuteDeptName = examExecuteDeptName;
    }

    @Basic
    @Column(name = "compose_type")
    public String getComposeType() {
        return composeType;
    }

    public void setComposeType(String composeType) {
        this.composeType = composeType;
    }

    @Basic
    @Column(name = "item_type_code")
    public String getItemTypeCode() {
        return itemTypeCode;
    }

    public void setItemTypeCode(String itemTypeCode) {
        this.itemTypeCode = itemTypeCode;
    }

    @Basic
    @Column(name = "item_type_name")
    public String getItemTypeName() {
        return itemTypeName;
    }

    public void setItemTypeName(String itemTypeName) {
        this.itemTypeName = itemTypeName;
    }

    @Basic
    @Column(name = "item_code")
    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    @Basic
    @Column(name = "item_name")
    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Basic
    @Column(name = "child_item_code")
    public String getChildItemCode() {
        return childItemCode;
    }

    public void setChildItemCode(String childItemCode) {
        this.childItemCode = childItemCode;
    }

    @Basic
    @Column(name = "child_item_name")
    public String getChildItemName() {
        return childItemName;
    }

    public void setChildItemName(String childItemName) {
        this.childItemName = childItemName;
    }

    @Basic
    @Column(name = "sample_code")
    public String getSampleCode() {
        return sampleCode;
    }

    public void setSampleCode(String sampleCode) {
        this.sampleCode = sampleCode;
    }

    @Basic
    @Column(name = "sample_name")
    public String getSampleName() {
        return sampleName;
    }

    public void setSampleName(String sampleName) {
        this.sampleName = sampleName;
    }
    @Basic
    @Column(name = "emergency")
    public String getEmergency() {
        return emergency;
    }

    public void setEmergency(String emergency) {
        this.emergency = emergency;
    }

    @Basic
    @Column(name = "pinyin_code")
    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }
    @Basic
    @Column(name = "sort")
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        OdsLabSetDetail that = (OdsLabSetDetail) o;

        if (labSetDetailId != that.labSetDetailId) {
            return false;
        }
        if (medicalTechnologySetId != that.medicalTechnologySetId) {
            return false;
        }
        if (sort != that.sort) {
            return false;
        }
        if (examExecuteDept != null ? !examExecuteDept.equals(that.examExecuteDept) : that.examExecuteDept != null) {
            return false;
        }
        if (examExecuteDeptName != null ? !examExecuteDeptName.equals(that.examExecuteDeptName) : that.examExecuteDeptName != null) {
            return false;
        }
        if (composeType != null ? !composeType.equals(that.composeType) : that.composeType != null) {
            return false;
        }
        if (itemTypeCode != null ? !itemTypeCode.equals(that.itemTypeCode) : that.itemTypeCode != null) {
            return false;
        }
        if (itemTypeName != null ? !itemTypeName.equals(that.itemTypeName) : that.itemTypeName != null) {
            return false;
        }
        if (itemCode != null ? !itemCode.equals(that.itemCode) : that.itemCode != null) {
            return false;
        }
        if (itemName != null ? !itemName.equals(that.itemName) : that.itemName != null) {
            return false;
        }
        if (childItemCode != null ? !childItemCode.equals(that.childItemCode) : that.childItemCode != null) {
            return false;
        }
        if (childItemName != null ? !childItemName.equals(that.childItemName) : that.childItemName != null) {
            return false;
        }
        if (sampleCode != null ? !sampleCode.equals(that.sampleCode) : that.sampleCode != null) {
            return false;
        }
        if (sampleName != null ? !sampleName.equals(that.sampleName) : that.sampleName != null) {
            return false;
        }
        if (emergency != null ? !emergency.equals(that.emergency) : that.emergency != null) {
            return false;
        }
        return pinyinCode != null ? pinyinCode.equals(that.pinyinCode) : that.pinyinCode == null;
    }

    @Override
    public int hashCode() {
        int result = labSetDetailId;
        result = 31 * result + medicalTechnologySetId;
        result = 31 * result + (examExecuteDept != null ? examExecuteDept.hashCode() : 0);
        result = 31 * result + (examExecuteDeptName != null ? examExecuteDeptName.hashCode() : 0);
        result = 31 * result + (composeType != null ? composeType.hashCode() : 0);
        result = 31 * result + (itemTypeCode != null ? itemTypeCode.hashCode() : 0);
        result = 31 * result + (itemTypeName != null ? itemTypeName.hashCode() : 0);
        result = 31 * result + (itemCode != null ? itemCode.hashCode() : 0);
        result = 31 * result + (itemName != null ? itemName.hashCode() : 0);
        result = 31 * result + (childItemCode != null ? childItemCode.hashCode() : 0);
        result = 31 * result + (childItemName != null ? childItemName.hashCode() : 0);
        result = 31 * result + (sampleCode != null ? sampleCode.hashCode() : 0);
        result = 31 * result + (sampleName != null ? sampleName.hashCode() : 0);
        result = 31 * result + (emergency != null ? emergency.hashCode() : 0);
        result = 31 * result + (pinyinCode != null ? pinyinCode.hashCode() : 0);
        result = 31 * result + sort;
        return result;
    }
}
